﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CYZH.Common;
using CYZHLibrary;
namespace CYZH.Service.Drought
{
    public class SPIService
    {
        /// <summary>
        /// 计算SPI
        /// </summary>
        /// <param name="infiles">输入气象文件</param>
        /// <param name="shpfile">行政区界限</param>
        /// <param name="mergeres">输出栅格文件</param>
        /// <param name="ascsavefile">输出中间文本文件</param>
        /// <returns>0 计算成功-1 计算失败</returns>
        public int CalculateSPI(List<string> infiles,string shpfile, string mergeres, string ascsavefile)
        {

            string msg;
            int i = CYZHLibrary.HZ.SPI.CalculateSPI(infiles, shpfile, mergeres, ascsavefile, out msg);
            Logger.Singleton.Debug(msg);
            return i;

        }

    }
}
